<?php
class WatchCameraController extends AppController{
    /**
     * set layout
     */
    public function beforeFilter() {
        parent::beforeFilter();
        $this->loadModel('Camera');
        $this->set('title_for_layout', "camera");
        $this->menu_active = 'watch_camera';
    }
    /**
     * 
     */
    public function index(){
        $cameras = $this->Camera->getAllCamera($this->request->data);
        //echo "<pre>";var_dump($cameras);die();
        $this->set('cameras', $cameras);
    }
}
